package com.dlc.felear.xiaoensale.entity;

import java.util.List;

public class ConnectInfo {

    /**
     * userInfo : {"photoPath":"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKOicSSbQpGpnnJYTEGRaEoBCvfvzKdia8CcGFhMic0DZxWibVgvML7Qkw4SKRRibpFolAbLBTlOITV6Lw/132","nickName":"QDJ","userId":"US566454233547419"}
     * goodsInfo : {"goodsId":"38a2f66a8c6847d8b1d1c02ff4d68984","goodsPrice":0.01,"goodsName":"西红柿炒蛋"}
     * shopcarInfo : []
     * code : 400
     * msg : 餐盘未绑定用户
     */

    private UserInfo userInfo;
    private GoodsInfo goodsInfo;
    private int code;
    private String msg;
    private List<ShopCarInfo> shopcarInfo;
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public GoodsInfo getGoodsInfo() {
        return goodsInfo;
    }

    public void setGoodsInfo(GoodsInfo goodsInfo) {
        this.goodsInfo = goodsInfo;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<ShopCarInfo> getShopcarInfo() {
        return shopcarInfo;
    }

    public void setShopcarInfo(List<ShopCarInfo> shopcarInfo) {
        this.shopcarInfo = shopcarInfo;
    }

    public static class UserInfo {
        /**
         * photoPath : https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKOicSSbQpGpnnJYTEGRaEoBCvfvzKdia8CcGFhMic0DZxWibVgvML7Qkw4SKRRibpFolAbLBTlOITV6Lw/132
         * nickName : QDJ
         * userId : US566454233547419
         */

        private String photoPath;
        private String nickName;
        private String userId;
        private double balance;
        private int magcard_type;

        public int getMagcard_type() {
            return magcard_type;
        }

        public void setMagcard_type(int magcard_type) {
            this.magcard_type = magcard_type;
        }

        public double getBalance() {
            return balance;
        }

        public void setBalance(double balance) {
            this.balance = balance;
        }

        public String getPhotoPath() {
            return photoPath;
        }

        public void setPhotoPath(String photoPath) {
            this.photoPath = photoPath;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }
    }

    public static class GoodsInfo {
        /**
         * goodsId : 38a2f66a8c6847d8b1d1c02ff4d68984
         * goodsPrice : 0.01
         * goodsName : 西红柿炒蛋
         */

        private String goodsId;
        private double goodsPrice;
        private double goodsOriginalPrice;
        private String goodsName;
        private int goodsUnit;
        private int goodsWeight;
        private int goodsOffset;

        public double getGoodsOriginalPrice() {
            return goodsOriginalPrice;
        }

        public void setGoodsOriginalPrice(double goodsOriginalPrice) {
            this.goodsOriginalPrice = goodsOriginalPrice;
        }

        public int getGoodsOffset() {
            return goodsOffset;
        }

        public void setGoodsOffset(int goodsOffset) {
            this.goodsOffset = goodsOffset;
        }

        public int getGoodsUnit() {
            return goodsUnit;
        }

        public void setGoodsUnit(int goodsUnit) {
            this.goodsUnit = goodsUnit;
        }

        public int getGoodsWeight() {
            return goodsWeight;
        }

        public void setGoodsWeight(int goodsWeight) {
            this.goodsWeight = goodsWeight;
        }

        public String getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(String goodsId) {
            this.goodsId = goodsId;
        }

        public double getGoodsPrice() {
            return goodsPrice;
        }

        public void setGoodsPrice(double goodsPrice) {
            this.goodsPrice = goodsPrice;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }
    }
    public static class ShopCarInfo {
        /**
         * goodsId : 38a2f66a8c6847d8b1d1c02ff4d68984
         * goodsPrice : 0.01
         * goodsName : 西红柿炒蛋
         */

        private String goodsId;
        private double price;
        private double originalPrice;
        private String name;
        private int num;
        private int unit;

        public double getOriginalPrice() {
            return originalPrice;
        }

        public void setOriginalPrice(double originalPrice) {
            this.originalPrice = originalPrice;
        }

        public int getUnit() {
            return unit;
        }

        public void setUnit(int unit) {
            this.unit = unit;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        public String getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(String goodsId) {
            this.goodsId = goodsId;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double goodsPrice) {
            this.price = goodsPrice;
        }

        public String getName() {
            return name;
        }

        public void setName(String goodsName) {
            this.name = goodsName;
        }
    }
}
